package com.zzyl.config;


import com.zzyl.properties.WechatProperties;
import com.zzyl.utils.WechatUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 创建登录工具的Bean
 */
@Configuration
public class WechatConfig {

    @Bean
    public WechatUtil getWechat(WechatProperties wechatProperties) {
        return new WechatUtil(wechatProperties.getAppId(), wechatProperties.getAppSecret());
    }
}
